﻿using Janus.BaseEntitys;
using System;
using System.Collections.Generic;

namespace Janus.Mes.POCO
{
    /// <summary>
    /// 账号管理
    /// </summary>
    public partial class Users : Entity
    {
        public Users()
        {
        }
        /// <summary>
        /// 用户中心账号绑定
        /// </summary>
        public string UserID { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// 手机联系方式（唯一）
        /// </summary>
        /// <value>
        /// The tel.
        /// </value>
        public string Tel { get; set; }

        /// <summary>
        /// 邮箱地址
        /// </summary>
        /// <value>
        /// The email.
        /// </value>
        public string Email { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public UsersType UserType { get; set; }

        /// <summary>
        /// 最后一次登录时间
        /// </summary>
        public DateTime LastLoginTime { get; set; }
    }

    /// <summary>
    /// 用户类型
    /// </summary>
    public enum UsersType
    {
        /// <summary>
        /// 新房用户
        /// </summary>
        [ShowName("新房用户", "")]
        NRP = 0,

        /// <summary>
        /// ERP用户
        /// </summary>
        [ShowName("ERP用户", "")]
        ERP = 1,

        /// <summary>
        /// 外网用户
        /// </summary>
        [ShowName("外网用户", "")]
        FUN = 2
    }

}
